<?php
defined('IN_TS') or die('Access Denied.');

//小组首页

include 'groupinfo.php';

$rate =  round($strGroup['count_sto']/20,2)*100;

$link = $_GET['link'];
if(!$link){
	tsHeaderUrl(tsUrl('group','placard',array('id'=>$groupid,'link'=>$TS_USER['userid'])));
}

$user = aac('user')->find('user_info',array('userid'=>$link));



$strArticle = aac('article')->find('article',array(
	'articleid'=>897,
));
$strArticle['content'] = tsDecode($strArticle['content'],$tp);

$strDes = aac('article')->find('article',array(
	'articleid'=>$strGroup['articleid']
));
$strDes['content'] = tsDecode($strDes['content']);

$isstock = $new['group']->find('group_user',array(
	'userid'=>$link,'isstock'=>1
));


if(!$isstock){
	$isvo = $new['group']->find('group_user',array(
		'userid'=>$link,'isstock'=>1
	));
}

if($isstock){
	$title = $user['username'].'是'. $strGroup['groupname'].'馆东，我为我馆代言。众筹进行中，加入我们，这间公益图书馆有你一份！';
}else{
	if($isvo){
		$title = $user['username'].'是'. $strGroup['groupname'].'馆员，我为我馆代言。众筹进行中，加入我们，这间公益图书馆有你一份！';
	}else{
		$title = $strGroup['groupname'].'——从今天起，这间公益图书馆有你一份';
	}
}


	//小组会员
include 'groupuser.php';



	if($TS_CF['mobile']) $sitemb = tsUrl('moblie','group',array('ts'=>'show','groupid'=>$strGroup['groupid']));

	include template("placard");

